package com.leyou.registry;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
//  --------------------       搭建注册中心      --------------------

@EnableEurekaServer    // 导入Eureka 注册中心的依赖
@SpringBootApplication  //开启启动类注解
public class lyRegistryApplication {
    public static void main(String[] args) {
        //创建一个SpringBoot的启动类入口函数
        SpringApplication.run(lyRegistryApplication.class,args);
    }
}
